#ifndef SNAKE_H
#define SNAKE_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class snake; }
QT_END_NAMESPACE

class snake : public QWidget
{
    Q_OBJECT

public:
    snake(QWidget *parent = nullptr);
    ~snake();
    //重写绘画者方法
    void paintEvent(QPaintEvent *event);

private:
    Ui::snake *ui;
};
#endif // SNAKE_H
